ADP\BaseVersion\Includes\WC\WcCartItemFacade D

Total Complexity 168
Dependencies 13
Dependents 54
Total lines 1,220
Lines of code 512
Logical lines of code 230
Comment lines 346
Methods 92
Properties 34

Methods 92

Method Rating Maintainability Complexity Lines of code
__construct()
C
36 29 63
generateCartId()
A
51 11 25
addAttribute()
S
58 5 18
sanitize()
S
51 4 27
createFromProduct()
S
49 3 33
getDiscounts()
S
61 4 13
removeAttribute()
S
62 4 11
getHistory()
S
64 3 10
createItem()
S
64 3 10
getOurData()
S
55 1 22
getClearData()
S
59 1 16
isFreeItem()
S
78 2 3
isAutoAddItem()
S
78 2 3
isRecommendedAutoAddItem()
S
78 2 3
setInitialCustomPrice()
S
78 2 3
getInitialCustomPrice()
S
78 2 3
getOriginalPriceWithoutTax()
S
78 2 3
getOriginalPrice()
S
78 2 3
isImmutable()
S
78 2 3
getOriginalPriceTax()
S
78 2 3
getRegularPriceTax()
S
78 2 3
setCurrency()
S
74 2 5
setFreeCartItemHash()
S
74 2 5
setAutoAddCartItemHash()
S
74 2 5
wcGetCartItemDataHash()
S
69 2 6
isHasReadOnlyPrice()
S
78 2 3
getRegularPriceWithoutTax()
S
78 2 3
getExactSubtotalTax()
S
74 2 4
packCurrencyObject()
S
65 2 10
unpackCurrencyObject()
S
69 2 6
setPriceAdjustments()
S
81 1 3
isContaineredType()
S
80 1 3
isContainerType()
S
80 1 3
isBasicType()
S
80 1 3
getPriceAdjustments()
S
82 1 3
autoAddCanBeRemoved()
S
82 1 3
setContainerType()
S
81 1 3
setAutoAddCanBeRemoved()
S
81 1 3
isSelectedFreeCartItem()
S
82 1 3
setSelectedFreeCartItem()
S
81 1 3
getAutoAddCartItemHash()
S
82 1 3
getProductId()
S
82 1 3
getFreeCartItemHash()
S
82 1 3
setBasicType()
S
81 1 3
setContainerPriceType()
S
80 1 3
setContaineredType()
S
81 1 3
getAssociatedHash()
S
82 1 3
getContainerPriceType()
S
79 1 3
setContainerChildrenHashes()
S
80 1 3
getContainerChildrenHashes()
S
80 1 3
setParentContainerPriceType()
S
80 1 3
getParentContainerPriceType()
S
79 1 3
setParentContainerCartItemHash()
S
80 1 3
getParentContainerCartItemHash()
S
79 1 3
setContaineredPricedIndividually()
S
80 1 3
isContaineredPricedIndividually()
S
79 1 3
isAffected()
S
80 1 3
__clone()
S
81 1 3
setKey()
S
81 1 3
getVariationId()
S
82 1 3
getVariation()
S
82 1 3
setAssociatedHash()
S
80 1 3
setThirdPartyData()
S
80 1 3
getSubtotal()
S
82 1 3
isClone()
S
80 1 3
getOriginalKey()
S
82 1 3
setOriginalKey()
S
81 1 3
getQty()
S
82 1 3
setHistory()
S
91 1 2
getProduct()
S
82 1 3
setDiscounts()
S
91 1 2
getCartItemData()
S
73 1 5
setOriginalPriceWithoutTax()
S
79 1 3
setOriginalPrice()
S
79 1 3
deleteThirdPartyData()
S
80 1 3
setOriginalPriceTax()
S
79 1 3
setRegularPriceWithoutTax()
S
79 1 3
getSubtotalTax()
S
82 1 3
withContext()
S
81 1 3
setRegularPriceTax()
S
79 1 3
getThirdPartyData()
S
82 1 3
getData()
S
79 1 3
getKey()
S
82 1 3
setNewPrice()
S
76 1 4
getNewPrice()
S
82 1 3
isVisible()
S
82 1 3
setReplaceWithCoupon()
S
80 1 3
getReplaceWithCoupon()
S
80 1 3
setReplaceCouponCode()
S
80 1 3
getReplaceCouponCode()
S
82 1 3
getCurrency()
S
82 1 3
setQty()
S
80 1 3